package com.zx.idc.backend.gui.scheduler.report.shield;

import com.zx.idc.ds.report.rshield.service.IRShieldDayService;
import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 屏蔽统计日报 job
 */
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class RShieldDayJob implements Job {
    private static final Logger LOG = LoggerFactory.getLogger(RShieldDayJob.class);

    @Autowired
    private IRShieldDayService shieldDayService;


    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        LOG.info("Aggregate shield daily report job start...");
        shieldDayService.aggregate();
        LOG.info("Aggregate shield daily report job done.");
    }
}
